<template>
    <div class="container-child">
        <button @click="sendMsg">发送</button>
        <ParentSon></ParentSon>
    </div>
</template>
<script lang='ts' setup>
import bus from '@/utils/bus'
import ParentSon from './ParentSon.vue';
const sendMsg=()=>{
    bus.emit('make',"床前明月光，疑是地上霜")
}


</script>
<style lang='scss' scoped>
.container-child{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 150px;
    border: 2px dashed springgreen;
    background-color: springgreen;
}
</style>